﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<DomainModel.Entities.Task>" %>

<% using (Html.BeginForm(null, null, FormMethod.Post, new { @id = "task-form", @class = "form"}))
   { %>
    <%= Html.HiddenFor(m => m.Id)%>       
    <%= Html.HiddenFor(m => m.UserId)%>       
    <%= Html.TextBox("Name", null, new { @placeholder = "Enter task name..."})%><br />
    <span class="task-form-list-ico">list</span>           
    <%= Html.DropDownList("ProjectId", (List<SelectListItem>)ViewData["Projects"])%><br />
    <span class="task-form-date-ico">list</span>
    <%= Html.TextBox("DateDue",String.Format("{0:dd.MM.yyyy}", Model.DateDue), new { @placeholder = "DateDue...", @class = "add-task-date" })%><br />
        <%= Html.TextArea("Description", null, new { @placeholder = "Description..." })%>
<% } %>

